package com.du.method;

import com.du.entity.ConvertParam;

import java.util.Objects;

/**
 * @Desc :
 * @Author: shuangdu
 * @date : 2024/4/29
 */
public class ConvertContext {

    public static ConvertContext holder = new ConvertContext();

    private ConvertParam param = new ConvertParam();

    private void setConvertParam(ConvertParam param) {
        this.param = param;
    }

    public ConvertParam getParam() {
        return param;
    }

    public static void setParam(ConvertParam param) {
        if (Objects.nonNull(param)) {
            holder.setConvertParam(param);
        }
    }

}
